package cn.witsky.cdrService.domain;


import cn.witsky.cdrService.domain.base.BaseTLV;
import cn.witsky.cdrService.domain.callEvent.CallEvent;
import cn.witsky.cdrService.domain.hreaderRecord.HeaderRecord;
import cn.witsky.cdrService.domain.trailer.Trailer;
import cn.witsky.cdrService.util.TagUtil;

public class CallFile extends BaseTLV{
	private HeaderRecord headerRecord=null;
	private CallEvent callEvent=null;
	private Trailer trailer=null;
	private Extensions extensions=null;
	public CallFile(boolean isMoCall) {
		this.setTag(TagUtil.file_tag);
		this.setHasChildTLV(true);
		headerRecord=new HeaderRecord();
		callEvent=new CallEvent(isMoCall);
		trailer=new Trailer();
		extensions=new Extensions();
	}
	public HeaderRecord getHeaderRecord() {
		return headerRecord;
	}
	public CallEvent getCallEvent() {
		return callEvent;
	}
	public Trailer getTrailer() {
		return trailer;
	}
	public Extensions getExtensions() {
		return extensions;
	}	
}
